package cn.jvav.zh.game;

import cn.jvav.zh.game.map.object.MapObjects;

public class Floor{
	public MapObjects[][] map;

	public Floor(){
	}

	public Floor(MapObjects[][] map){
		this.map = map;
	}

	public void show(){
		System.out.println("   "+"-".repeat(11 * 3 * 4+2));
		for(int i = 0; i < map.length; i++){
			System.out.print("   |");
			for(int j = 0; j < map[i].length; j++){
				String name = map[i][j].name;
				System.out.print(name + "\t".repeat(3 - (name.length() - 1) / 2));
			}
			System.out.println("|");
		}
		System.out.println("   "+"-".repeat(11 * 3 * 4+2));
	}
}
